//
//  XLAdapter.h
//  campus
//
//  Created by xl on 2019/12/11.
//  Copyright © 2019 xl. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol XLAdapterDelegate <NSObject>

@optional
- (void)didSelectCellData:(id)cellData;

- (void)didSelectCellData:(id)cellData indexPath:(NSIndexPath *)indexPath;

- (void)deleteCellData:(id)cellData indexPath:(NSIndexPath *)indexPath;

- (void)editCellData:(id)cellData;

@end

@interface XLAdapter : NSObject <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, weak)     id<XLAdapterDelegate>  adapterDelegate;

- (NSArray*)getAdapterArray;

- (void)setAdapterArray:(NSArray*)arr;

@end

